home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWFiles / SLFileAc.idl < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.6 KB  |  92 lines  |  [TEXT/MPS ]

  1. //
  2. //
  3. //    File:                SLFileAc.idl
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //
  9.  
  10. #ifndef SLFILEAC_IDL
  11. #define SLFILEAC_IDL
  12.  
  13. #ifndef FWENVDEF_IDL
  14. #include "FWEnvDef.idl"
  15. #endif
  16.  
  17. #ifndef SLRANSIN_IDL
  18. #include "SLRanSin.idl"
  19. #endif
  20.  
  21. #ifndef SLFILREP_IDL
  22. #include "SLFilRep.idl"
  23. #endif
  24.  
  25. #include <somobj.idl>
  26. #include <somcls.idl>
  27.  
  28.  
  29. //==============================================================================
  30. // Classes defined in this interface
  31. //==============================================================================
  32.  
  33. interface   FW_OFileSink;
  34.  
  35.  
  36. //==============================================================================
  37. // Classes used by this interface
  38. //==============================================================================
  39.  
  40. interface   FW_ORandomAccessSink;
  41. interface    FW_OFile;
  42.  
  43.  
  44. //========================================================================================
  45. // FW_OMemorySink
  46. //========================================================================================
  47.  
  48. interface FW_OFileSink : FW_ORandomAccessSink
  49. {
  50.     void InitFromOFile(in FW_OFile theFile);
  51.  
  52.     FW_OFile GetOFileRep();
  53.  
  54. #ifdef __SOMIDL__
  55.     implementation
  56.     {
  57.         functionprefix = "FW_OFileSink__";
  58.  
  59.         override:
  60.             somInit,
  61.             somUninit,
  62.  
  63.             Read,
  64.             GetWritableBytes,
  65.             Write,
  66.             GetLength,
  67.             SetLength,
  68.             GetPosition,
  69.             SetPosition;
  70.  
  71.         releaseorder:
  72.             InitFromOFile,
  73.             GetOFileRep;
  74.  
  75.         majorversion = 1;
  76.         minorversion = 0;
  77.  
  78.         passthru C_xh =
  79.             "";
  80.  
  81.         passthru C_xih =
  82.             "";
  83.  
  84. #ifdef __PRIVATE__    
  85.     FW_OFile    fRep;
  86. #endif
  87.     };
  88. #endif
  89. };
  90.  
  91. #endif
  92.